
import type {App} from 'vue'
import {app} from './main'

interface Use{
  install: (app:App,...options:any[]) => void
}
const set = new Set()
export function MyUse<T extends Use>(plugin:T,...options:any[]){
  if(set.has(plugin)){
    console.log("已注册",plugin);

    
  }else{
    plugin.install(app,...options);
    set.add(plugin)
  }
  
}